import request from '@/utils/request'
import qs from 'qs'

export function reportMessage(state, iDisplayStart, iDisplayLength, phone = '', reportphone = '', infortype = 1, reportcode = '', fromtime = '', totime = '') {
  const data = {
    state,
    iDisplayStart,
    iDisplayLength,
    phone,
    reportphone,
    infortype,
    reportcode,
    fromtime,
    totime
  }
  return request({
    url: `/admin/report/find`,
    method: 'post',
    data: qs.stringify(data)
  })
}
export function reportDelte(id) {
  const data = {
    id
  }
  return request({
    url: `/admin/report/delete`,
    method: 'post',
    data: qs.stringify(data)
  })
}
